package com.kdtech.utils;

import java.net.URL;

import com.kd.crawler.common.utils.UrlUtils;

public class DoMainUtils {

	public static String GetDomainName(String url) {
		return UrlUtils.getDomain(url);
	}

	public static String GetDomainName(URL uRL) {
		if(null == uRL) {
			return null;
		}
		
		return uRL.getHost();
	}
}
